package com.wwz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户
 * @date 2022/03/26 51:11:05
 */
@Data
@ApiModel("客户")
@TableName("customer")
@EqualsAndHashCode(callSuper = false)
public class Customer implements Serializable {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;


    @ApiModelProperty("客户名")
    private String name;


    @ApiModelProperty("照片")
    private String photo;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("年龄")
    private String age;


    @ApiModelProperty("性别")
    private String sex;


    @ApiModelProperty("邮箱")
    private String email;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

}
